#include"writer.hpp"

int main()
{
    Writer writer;
    writer.OpneFifo();
    std::string message;
    while(true)
    {
        std::cout<<"请输入#";
        std::getline(std::cin,message);
        writer.WritePipe(message);
    }
    writer.ClosePipe();
    return 0;
}